package info.openlvb.openface.client.handler;

import info.openlvb.openface.client.base.person.AddGroupPanel;

import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;

public class ClearGroupListener extends ButtonListenerAdapter {
	
	AddGroupPanel addGroupPanel;
	public ClearGroupListener(AddGroupPanel addGroupPanel) {
		this.addGroupPanel = addGroupPanel;
	}

	public void onClick(Button button, EventObject e) {
		addGroupPanel.getNom().setValue("");
		addGroupPanel.getDescription().setValue("");
		addGroupPanel.getSuggestBox().setValue("");
		addGroupPanel.setNullMembers();

	}


}
